<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML>
<html>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<title>俊英美发后台管理系统</title>
<style>
    *{
        margin:0;
        padding:0;
    }
    .bg{
        background:url("/img/backgroubd_log.jpg") no-repeat;
        background-position:center center;
        background-size:cover;
        height:100%;
        overflow:hidden;
    }
    .main_form{
        margin:15% auto 0;
        text-align:center;
        over-flow:hidden;
    }
    .title{
        width:15%;
        margin:15% auto 0;
    }
    .title>img{width:100%;}
    .ip0{
        width:300px;
        height:46px;
        vertical-align: bottom;

    }
    .ip0>label{
        font-size: 42px;
        height: 42px;
        display: inline-block;
        line-height: 42px;
        color: white;
        font-weight: normal;
    }
    .ip1{
        width:300px;
        height:46px;
        border:1px solid #2d75d0;
        -webkit-box-shadow:inset 0 0 20px #2d75d0;
        -moz-box-shadow:inset 0 0 20px #2d75d0;
        box-shadow:inset 0 0 20px #2d75d0;
        background:url("/img/yonghu.png") no-repeat;
        background-size: 8% 50%;
        background-position:3% center;
        border-radius:5px;
    }
    .ip1>label{
        font-size: 18px;
        height: 42px;
        display: inline-block;
        line-height: 42px;
        float: left;
        color: white;
        font-weight: normal;
        padding-left: 13%;
        margin-top:2px;
        width:23%;

    }
    .ip1>input{
        border: none;
        background:transparent;
        outline:none;
        line-height: 42px;
        height: 42px;
        display: block;
        float: left;
        font-size: 18px;
        color: white;
        width:60%;
        text-indent:12px;
        margin-top:2px;
    }
    .ip2{
        width:300px;
        height:46px;
        border:1px solid #2d75d0;
        -webkit-box-shadow:inset 0 0 20px #2d75d0;
        -moz-box-shadow:inset 0 0 20px #2d75d0;
        box-shadow:inset 0 0 20px #2d75d0;
        background:url("/img/mima.png") no-repeat;
        background-size: 8% 50%;
        background-position:3% center;
        border-radius:5px;

    }
    .ip2>label{
        font-size: 18px;
        height: 42px;
        display: inline-block;
        line-height: 42px;
        float: left;
        color: white;
        font-weight: normal;
        padding-left: 13%;
        margin-top:2px;
        width:23%;

    }
    .ip2>input{
        border: none;
        background:transparent;
        outline:none;
        line-height: 42px;
        height: 42px;
        display: block;
        float: left;
        font-size: 18px;
        color: white;
        width:60%;
        text-indent:12px;
        margin-top:2px;
    }
    .ip3{
        width: 175px;
        height: 46px;
        border: 1px solid #2d75d0;
        -webkit-box-shadow: inset 0 0 20px #2d75d0;
        -moz-box-shadow: inset 0 0 20px #2d75d0;
        box-shadow: inset 0 0 20px #2d75d0;
        background: url("/img/yanzheng.png") no-repeat;
        background-size: 13% 50%;
        background-position: 5% center;
        border-radius: 5px;
    }
    .ip3>label{
        font-size: 18px;
        height: 42px;
        display: inline-block;
        line-height: 42px;
        float: left;
        color: white;
        font-weight: normal;
        padding-left: 20%;
        margin-top:2px;
        width:37%;
    }
    .ip3>input{
        border: none;
        background:transparent;
        outline:none;
        line-height: 42px;
        height: 42px;
        display: block;
        float: left;
        font-size: 18px;
        color: white;
        width:37%;
        margin-top:2px;
    }
    .ip3>a{
        position: absolute;
        top: 0;
        left: 65%;
        display: block;
        height: 46px;
    }
    .ip3 a img{height:100%;}
    .ip0{margin:2% auto 0;}
    .ip1{margin:2% auto 0;}.ip2{margin:1% auto 0;}
    .border{margin:1% auto 0;width: 300px;height: 46px;position:relative;}
    .button_submit{
        background: url(/img/buttoun_denglu.png) no-repeat;
        -web-kit-appearance: none;
        -moz-appearance: none;
        border: none;
        color: white;
        width: 300px;
        height: 46px;
        display: block;
        margin: 1% auto 0;
        cursor: pointer;
    }
</style>
<body class="bg">
    <form action="/login.do" method="post" class="main_form">
        <div class="ip0">
            <label>俊&nbsp;&nbsp;英&nbsp;&nbsp;美&nbsp;&nbsp;发</label>
        </div>
        <div class="ip1">
            <label>用户名:</label><input type="text" id="users" name="names" />
        </div>
        <div class="ip2">
            <label>密　码:</label><input type="password" id="passwd" name="passwds" />
        </div>
        <div class="border">
            <div class="ip3">
                <label>验证码:</label><input type="text" id="verCode" name="verCode" />
                <a href='javascript:void(0);'  onclick="changeImgs();" style="display: inline-block;" >
                    <img id="img" style="width: 105px;" src="/authimage.do" />
                </a>
            </div>
        </div>
        <input type="submit" value="" class="button_submit" onclick="submits();return false;">
    </form>
<script src="/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
    function changeImgs(){
        var img = document.getElementById("img");
        img.src = "/authimage.do?date=" + new Date();
        return false;
    }
    var s = '${value}';
    var valur = '${info}';
    $(function(){
        if(s == 'false' ){
            alert(valur);
        }
    });

    function submits(){
        if(!$('#users').val()){
            alert('用户名不能为空');
            return false;
        }
        if(!$('#passwd').val()){
            alert('密码不能为空');
            return false;
        }
        if(!$('#verCode').val()){
            alert('验证码不能为空');
            return false;
        }

        $(".main_form").submit();


    };

</script>
</body>
</html>
